package com.joysuch.wwyt.api.mh.entity;


import com.joysuch.wwyt.core.support.AutoSetCommonFieldListener;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

@Data
@Entity
@EntityListeners({AutoSetCommonFieldListener.class })
@Table(name = "WWYT_API_MH_MONITOR_POINT_DATA")
public class MonitorPointAPIData {

    @Id
    @ApiModelProperty("主键ID")
    private Long tagId;

    @ApiModelProperty("监测点编号")
    private String stationId;

    @ApiModelProperty("监测点位号-编号")
    private String tagName;

    @ApiModelProperty("监测点数据")
    private Double tagValue;

    @ApiModelProperty("监测点采集时间")
    private Date tagTime;

    @ApiModelProperty("监测点类型")
    private String pointType;

    @ApiModelProperty("监测点单位")
    private String pointUnit;


    @ApiModelProperty("监测点所属公司编号")
    private String orgCode;

    @ApiModelProperty("租户ID")
    private String tenentId;

    @ApiModelProperty("备注")
    private String remark;
}
